<?php
$target_path = "./img/";
$target_path = $target_path . basename($_FILES['file']['name']);
if(move_uploaded_file($_FILES['file']['tmp_name'],$target_path)){
    echo $_FILES['file']['name'];
}
?>

